package api

import request "gitee.com/changeden/volcengine-livesaas-request-go"

type UpdateMediaOnlineStatusRequest struct {
	ActivityId   *int64 `json:"ActivityId"`
	MediaId      *int64 `json:"MediaId"`
	OnlineStatus *int32 `json:"OnlineStatus"`
}

func (instance *Instance) UpdateMediaOnlineStatus(data *UpdateMediaOnlineStatusRequest) (*NoResultResponse, error) {
	d := request.Data{
		Action: "UpdateMediaOnlineStatusAPI",
	}
	bindQuery(&d, *data)
	var res NoResultResponse
	err := instance.post(&d, &res)
	return &res, err
}
